package com.alipay.model.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author Jun
 */

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum ResponseCodeEnum {
    // 成功
    SUCCESS(200, "success"),
    // 失败
    UNKNOWN_ERROR(1000,"未知错误"),
    BAD_REQUESTS(1001, "非法请求"),
    ARG_ERROR(1002, "参数错误!"),
    BALANCE_ERROR(1003, "账户余额不足"),
    DECREASE_ERROR(1004, "账户余额扣减失败"),
    INCREASE_ERROR(1005, "账户余额增加失败"),
    TRANSFER_ERROR(1006, "账户转账失败"),
    RED_BAG_FINISHED(1007, "红包已抢光"),
    RED_BAG_EXPIRED(1008,"红包已过期"),
    RED_BAG_REPETITION(1009,"红包重复")
    ;

    private Integer code;
    private String msg;
}
